define(['app'], function(app) {
    'use strict';

    //实例化方法
    var factory = function (Http) {

        //返回信息
        return {
            //获取首页数据
            get_auctionup: function (callback) {

                var data = new Object();
                data.auctions =
                    [{ name: '商品名称1', price: '2001', order: '1201', number: '1201', start: '1', limit: '1' }
				, { name: '商品名称2', price: '2002', order: '1202', number: '1202', start: '2', limit: '2' }
				, { name: '商品名称3', price: '2003', order: '1203', number: '1203', start: '3', limit: '3' }
                    ];
                data.checks =
                   [{ name: '经销商名称1', check: 'false' }
               , { name: '经销商名称2', check: 'true' }
               , { name: '经销商名称3', check: 'false' }
                   ];

                //函数回调
                if (callback)
                    callback(data);

            },
        };
    }

    factory.$inject = ['Http'];
    return app.registerService("Auctionup", factory);
});